package com.skit.customview;

import android.os.Bundle;
import android.view.View;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.skit.customview.widget.SwitchView;

/**
 * @author shuike <a href="mailto:shuike007@gmail.com">Contact me.</a>
 * @version 1.0
 * @since 2020/6/19
 */

public class SwitchViewActivity extends AppCompatActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.view_switch_view_activity);

    }

    public void onClick(View view) {
        SwitchView switchView = findViewById(R.id.color_switch);
        switchView.setChecked(!switchView.isChecked());

    }
}
